package com.css.fxfzcpxx.modules.questionData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzcpxx.base.response.RestResponse;
import com.css.fxfzcpxx.modules.questionData.entity.QuestionData;
import com.css.fxfzcpxx.modules.questionData.param.GetScoreParam;
import com.css.fxfzcpxx.modules.questionData.param.QuestionDataParam;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.Map;

public interface QuestionDataService {
    Map<String, Object> getPage(int curPage, int pageSize, QuestionDataParam param);

    RestResponse updateById(QuestionData param);

    void delete(String ids);

    JSONObject findById(String id);

    RestResponse save(QuestionData param);

    void exportData(HttpServletResponse response, String ids);

    String reportImport(InputStream inputStream);

    RestResponse getTestById(String id);

    RestResponse getScore(GetScoreParam getScoreParam);
}
